package cn.longge.service.impl;

import cn.longge.entity.SysUser;
import cn.longge.mapper.SysUserMapper;
import cn.longge.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SysUserServiceImpl extends BaseServiceImpl<SysUser> implements ISysUserService {

    @Autowired
    private SysUserMapper userMapper;

    @Override
    public List<SysUser> selectByRoleId(int id) {
        return userMapper.selectByRoleId(id);
    }

    @Override
    public List<SysUser> selectByOfficeId(Long oid, Long rid) {
        return userMapper.selectByOfficeId(oid,rid);
    }
}
